package edu.hainnu.niit.controller;

import edu.hainnu.niit.model.Notice;
import edu.hainnu.niit.service.INoticeService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;

/**
 * TODO
 *
 * @package_name edu.hainnu.niit.controller
 * @auther GGB
 * @date 2021/12/11
 * @time 20:47
 */
@Controller
public class InitDataController {
  /*  @Resource
    INoticeService iNoticeService;
    @GetMapping("init/notice")
    public String initNotice(HttpSession session){
//        model.addAttribute("notice",iNoticeService.queryNoticeService());

        session.setAttribute("notice",iNoticeService.queryNoticeService());
        return "index";
    }*/

}
